package com.mmall.order.api.dto;

import lombok.Data;
import lombok.experimental.Accessors;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.List;

/**
 * @author hejianglong
 * @date 2019/10/23
 */
@Data
@Accessors(chain = true)
public class OrderCreateDTO implements Serializable {

    private final long serialVersionUID = 1L;

    @NotNull(message = "请选择收货地址")
    private Long userAddressId;

    @NotEmpty(message = "请选择商品后下单购买")
    private List<OrderItemDTO> orderItems;

    private String remark;
}
